package com.cn.mapper.dao.db5.EM.partRegt;

import com.cn.bean.pojo.ComponentMechanical.EquipmentMechanicalStructureMappingTable;
import com.cn.bean.pojo.lbj.ComponentSingleRegistrationTable;
import com.cn.bean.pojo.lbj.SingleParameterItemCurrentDataTable;
import com.cn.bean.pojo.lbj.SingleRegistrationTable;
import com.cn.bean.vo.EM.partRegt.BarkPar;
import com.cn.bean.vo.EM.partRegt.PartSingleRegisterBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PartSingleRegisterDao {
    List<PartSingleRegisterBean> getEquipmentMappingTable(PartSingleRegisterBean partSingleRegisterBean);

    int insertUniqueCodeCheck(@Param("uniqueCode") String uniqueCode);

    int insertPartSingleRegister(@Param("partSingleRegisterBean") PartSingleRegisterBean partSingleRegisterBean);

    int insertPartSingleCurrentInfo(@Param("partSingleRegisterBean") PartSingleRegisterBean partSingleRegisterBean);

    List<PartSingleRegisterBean> getList(@Param("limit") int limit, @Param("page") int page, @Param("id") Integer id);

    List<PartSingleRegisterBean> getUniqueCode(@Param("id") Integer id);

    int updatePartSingleRegister(@Param("partSingleRegisterBean") PartSingleRegisterBean partSingleRegisterBean);

    int deletePartSingleRegister(@Param("id") int id);

    int deletePartSingleCurrentInfo(@Param("id") int id);

    int auditing(@Param("id") int id, @Param("state") int state);

    List<PartSingleRegisterBean> callZTQProc(@Param("idList") String idList, @Param("userAccount") String userAccount, @Param("flag") String flag);

    String singleList(@Param("jsonString") String jsonString);
    BarkPar insertSingle(@Param("jsonString") String jsonString);
    BarkPar stateUp(@Param("jsonString") String jsonString);
}
